#include "logManager.h"
#include "stdarg.h"


CLog *log = NULL;

int logInit(const string fileName, int level ){
	log = new CLog();
	if( log == NULL ){
		return -1;
	}
	log->SetLogLevel(LL_DETAIL);
	return log->SetLogFile(fileName);
}

void logMsg(LOG_LEVEL level, const char *format, ...){
	va_list ap;
	va_start( ap, format );
	log->Log(level, 0, format, ap);
	va_end( ap );
}

